import { Any, Typed } from '@quick-toolkit/class-transformer';

export class HttpResource<T> {
  @Typed(String)
  public code: string;

  @Typed(Any)
  public data: T;

  @Typed(String)
  public message: string;

  @Typed(Boolean)
  public ok: boolean;
}
